#include "..\include\o_app.h"

App::App()
{
    on_create();
}

App::~App()
{
    on_release();
}

void App::on_create()
{
    p_core = new Core(this);

    if(p_core == NULL)
    {
        return;
    }

    if(p_core->init_core()==false)
    {
        return ;
    }

    p_core->run_core();
}

void App::on_release(){}

void App::on_reset(){}

void App::on_message(){}

void App::on_update(){}

void App::on_lost(){}

void App::on_destroy(){}

void App::on_input(){}

void App::on_render(){}